package com.baizhi.hospital.service.impl;

import com.baizhi.hospital.annotation.LogAnnotation;
import com.baizhi.hospital.dao.UserDao;
import com.baizhi.hospital.entity.User;
import com.baizhi.hospital.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired(required = false)
    private UserDao userDao;
    @Override
    //@LogAnnotation(value = "查询用户信息",type = "selectByUserNameAndPassword")
    public User selectByUserNameAndPassword(String userName, String password) {

        return userDao.selectByUserNameAndPassword(userName, password);
    }
}
